package com.lmscn.lms.api.util;

public class NumberUtil {

	public static int convertInt(Object obj) {
		return obj==null ? 0 : ((Integer)obj).intValue(); 
	}
	
	public static int convertDouble(Object obj) {
		return obj==null ? 0 : ((Double)obj).intValue(); 
	}
	
}
